﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ZhiLiangShu_MingXi_ToZhiJian.aspx.cs" Inherits="syc.ZhiJian.ZhiLiangShu_MingXi_ToZhiJian" %>

<head runat="server">
    <title></title>

</head>
<body>
    <script type="text/javascript" language="javascript" src="/common.js"></script>
  <form id="form1" runat="server">
    <div class="wintop">
        质量证明书信息</div>
     <asp:Panel ID="Panel1" runat="server" CssClass="panel">
        <asp:Button ID="Add" runat="server" 
             Text="新增" CssClass="button" onclick="Add_Click"/>    
         <input id="Button" class="button" onclick="document.location.href='ZhiLiangShu_Sign.aspx'"
              type="button" value="返回" />
    </asp:Panel>
     <asp:Panel ID="Panel2" runat="server" CssClass="panel" Visible=false>
     
     <table  border="1">
  <tr>
    <td colspan="17"><div align="center">化学成分(%)</div></td>
  </tr>
  <tr>
    <td width="80" height="24"><div align="center">炉号</div></td>
    <td width="44"><div align="center">C</div></td>
    <td width="44"><div align="center">Mn</div></td>
    <td width="44"><div align="center">Si</div></td>
    <td width="44"><div align="center">P</div></td>
    <td width="44"><div align="center">S</div></td>
    <td width="44"><div align="center">Cr</div></td>
    <td width="44"><div align="center">Ni</div></td>
    <td width="44"><div align="center">Cu</div></td>
    <td width="44"><div align="center">Mo</div></td>
    <td width="44"><div align="center">Al</div></td>
    <td width="44"><div align="center">V</div></td>
    <td width="44"><div align="center">Bi</div></td>
    <td width="44"><div align="center">Sn</div></td>
    <td width="44"><div align="center">Pb</div></td>
    <td width="44"><div align="center">As</div></td>
    <td width="44"><div align="center">Sb</div></td>
  </tr>
  <tr>
    <td><div align="center">
        <asp:Label ID="Label1" runat="server"></asp:Label>
        </div></td>
    <td><div align="center">
        <asp:TextBox ID="C" runat="server" Width="44px" onKeyPress="if (event.keyCode!=46 && event.keyCode!=45 && (event.keyCode<48 || event.keyCode>57)) event.returnValue=false"></asp:TextBox>
        </div></td>
    <td><div align="center">
        <asp:TextBox ID="Mn" runat="server" Width="44px" onKeyPress="if (event.keyCode!=46 && event.keyCode!=45 && (event.keyCode<48 || event.keyCode>57)) event.returnValue=false"></asp:TextBox>
        </div></td>
    <td><div align="center">
        <asp:TextBox ID="Si" runat="server" Width="44px" onKeyPress="if (event.keyCode!=46 && event.keyCode!=45 && (event.keyCode<48 || event.keyCode>57)) event.returnValue=false"></asp:TextBox>
        </div></td>
    <td><div align="center">
        <asp:TextBox ID="P" runat="server" Width="44px" onKeyPress="if (event.keyCode!=46 && event.keyCode!=45 && (event.keyCode<48 || event.keyCode>57)) event.returnValue=false"></asp:TextBox>
        </div></td>
    <td><div align="center">
        <asp:TextBox ID="S" runat="server" Width="44px" onKeyPress="if (event.keyCode!=46 && event.keyCode!=45 && (event.keyCode<48 || event.keyCode>57)) event.returnValue=false"></asp:TextBox>
        </div></td>
    <td><div align="center">
        <asp:TextBox ID="Cr" runat="server" Width="44px" onKeyPress="if (event.keyCode!=46 && event.keyCode!=45 && (event.keyCode<48 || event.keyCode>57)) event.returnValue=false"></asp:TextBox>
        </div></td>
    <td><div align="center">
        <asp:TextBox ID="Ni" runat="server" Width="44px" onKeyPress="if (event.keyCode!=46 && event.keyCode!=45 && (event.keyCode<48 || event.keyCode>57)) event.returnValue=false"></asp:TextBox>
        </div></td>
    <td><div align="center">
        <asp:TextBox ID="Cu" runat="server" Width="44px" onKeyPress="if (event.keyCode!=46 && event.keyCode!=45 && (event.keyCode<48 || event.keyCode>57)) event.returnValue=false"></asp:TextBox>
        </div></td>
    <td><div align="center">
        <asp:TextBox ID="Mo" runat="server" Width="44px" onKeyPress="if (event.keyCode!=46 && event.keyCode!=45 && (event.keyCode<48 || event.keyCode>57)) event.returnValue=false"></asp:TextBox>
        </div></td>
    <td><div align="center">
        <asp:TextBox ID="Al" runat="server" Width="44px" onKeyPress="if (event.keyCode!=46 && event.keyCode!=45 && (event.keyCode<48 || event.keyCode>57)) event.returnValue=false"></asp:TextBox>
        </div></td>
    <td><div align="center">
        <asp:TextBox ID="V" runat="server" Width="44px" onKeyPress="if (event.keyCode!=46 && event.keyCode!=45 && (event.keyCode<48 || event.keyCode>57)) event.returnValue=false"></asp:TextBox>
        </div></td>
    <td><div align="center">
        <asp:TextBox ID="Bi" runat="server" Width="44px" onKeyPress="if (event.keyCode!=46 && event.keyCode!=45 && (event.keyCode<48 || event.keyCode>57)) event.returnValue=false"></asp:TextBox>
        </div></td>
    <td><div align="center">
        <asp:TextBox ID="Sn" runat="server" Width="44px" onKeyPress="if (event.keyCode!=46 && event.keyCode!=45 && (event.keyCode<48 || event.keyCode>57)) event.returnValue=false"></asp:TextBox>
        </div></td>
    <td><div align="center">
        <asp:TextBox ID="Pb" runat="server" Width="44px" onKeyPress="if (event.keyCode!=46 && event.keyCode!=45 && (event.keyCode<48 || event.keyCode>57)) event.returnValue=false"></asp:TextBox>
        </div></td>
    <td><div align="center">
        <asp:TextBox ID="As" runat="server" Width="44px" onKeyPress="if (event.keyCode!=46 && event.keyCode!=45 && (event.keyCode<48 || event.keyCode>57)) event.returnValue=false"></asp:TextBox>
        </div></td>
    <td><div align="center">
        <asp:TextBox ID="Sb" runat="server" Width="44px" onKeyPress="if (event.keyCode!=46 && event.keyCode!=45 && (event.keyCode<48 || event.keyCode>57)) event.returnValue=false"></asp:TextBox>
        </div></td>
  </tr>
  <tr>
    <td colspan="7"><div align="center">拉伸试验(纵向)</div>      <div align="center"></div>      <div align="center"></div>      <div align="center"></div>      <div align="center"></div></td>
    <td colspan="5"><div align="center">冲击试验</div>      <div align="center"></div>      <div align="center"></div>      <div align="center"></div>      <div align="center"></div></td>
    <td rowspan="2"><div align="center">通径检验</div>      <div align="center"></div></td>
    <td rowspan="2"><div align="center">静水压试验</div>      <div align="center"></div></td>
    <td rowspan="2"><div align="center">无损探伤</div>      <div align="center"></div></td>
    <td rowspan="2"><div align="center">表面检验</div>      <div align="center"></div></td>
    <td rowspan="2"><div align="center">尺寸</div>      <div align="center"></div></td>
  </tr>
  <tr>
    <td><div align="center">炉号</div></td>
    <td colspan="2"><div align="center">抗拉强度</div>      <div align="center"></div></td>
    <td colspan="2"><div align="center">屈伸极限</div>      <div align="center"></div></td>
    <td colspan="2"><div align="center">伸长率</div>      <div align="center"></div></td>
    <td colspan="3"><div align="center"></div>      <div align="center">横向冲击</div>      <div align="center"></div></td>
    <td colspan="2">      <div align="center">纵向冲击</div></td>
  </tr>
  <tr>
    <td><div align="center">
        <asp:Label ID="Label2" runat="server"></asp:Label>
        </div></td>
    <td colspan="2"><div align="center"></div>      <div align="center">
        <asp:TextBox ID="klqd" runat="server" Width="80px" onKeyPress="if (event.keyCode!=46 && event.keyCode!=45 && (event.keyCode<48 || event.keyCode>57)) event.returnValue=false"></asp:TextBox>
        </div></td>
    <td colspan="2"><div align="center"></div>      <div align="center">
        <asp:TextBox ID="qsjx" runat="server" Width="80px" onKeyPress="if (event.keyCode!=46 && event.keyCode!=45 && (event.keyCode<48 || event.keyCode>57)) event.returnValue=false"></asp:TextBox>
        </div></td>
    <td colspan="2"><div align="center"></div>      <div align="center">
        <asp:TextBox ID="scl" runat="server" Width="80px" onKeyPress="if (event.keyCode!=46 && event.keyCode!=45 && (event.keyCode<48 || event.keyCode>57)) event.returnValue=false"></asp:TextBox>
        </div></td>
    <td colspan="3"><div align="center"></div>      <div align="center">
        <asp:TextBox ID="hx" runat="server" Width="44px">合格</asp:TextBox>
        </div> </td>
    <td colspan="2"><div align="center"></div>      <div align="center">
        <asp:TextBox ID="zx" runat="server" Width="44px">合格</asp:TextBox>
        </div></td>
    <td><div align="center">
        <asp:TextBox ID="tj" runat="server" Width="44px">合格</asp:TextBox>
        </div></td>
    <td><div align="center">
        <asp:TextBox ID="jsy" runat="server" Width="44px">合格</asp:TextBox>
        </div></td>
    <td><div align="center">
        <asp:TextBox ID="ws" runat="server" Width="44px">合格</asp:TextBox>
        </div></td>
    <td><div align="center">
        <asp:TextBox ID="bm" runat="server" Width="44px">合格</asp:TextBox>
        </div></td>
    <td><div align="center">
        <asp:TextBox ID="cc" runat="server" Width="44px">合格</asp:TextBox>
        </div></td>
  </tr>
</table>

    </asp:Panel>

    <asp:Panel ID="Panel3" runat="server" CssClass="panel2" >
        <asp:Label ID="Message" runat="server" Text="·准备就绪" CssClass="prompt"></asp:Label>
    </asp:Panel>
    
     <div class="gridframe">
        <div class="gridview">
        
            <table border="1" width="100%" cellspacing="0" cellpadding="0" bordercolor="#d0d0d0">
	            <tr>
		            <td class="grid-title">质量证明书       <tr>
		            <td class="grid-back">
                        <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
                            ConnectionString="<%$ ConnectionStrings:SCMConnectionString1 %>" 
                            SelectCommand="SELECT [ID],[炉号], [C], [Mn], [Si], [P], [S], [Cr], [Ni], [Cu], [Mo], [Al], [V], [Bi], [Sn], [Pb], [As], [Sb], [抗拉强度], [屈服极限], [伸长率] FROM [质量书明细] WHERE ([炉号] = @炉号 and [ID]=@ID)  "       
                              UpdateCommand="update [质量书明细]set C=@C,Mn=@Mn,Si=@Si,P=@P,S=@Si,Cr=@Cr,Ni=@Ni,Cu=@Cu,
Mo=@Mo,Al=@Al,V=@V,Bi=@Bi,Sn=@Sn,Pb=@Pb,[As]=@As,Sb=@Sb,抗拉强度=@抗拉强度,
屈服极限=@屈服极限,伸长率=@伸长率 where 炉号=@炉号 and ID=@ID"                    
                            >
                            <SelectParameters>
                                <asp:QueryStringParameter Name="炉号" QueryStringField="luhao" Type="String" />
                                <asp:QueryStringParameter QueryStringField="id" Name="ID" Type="String"></asp:QueryStringParameter>
                            </SelectParameters>                           
                            </asp:SqlDataSource>
                        <asp:GridView ID="GridView1" runat="server" AllowPaging="True"  
                             AutoGenerateColumns="False" CssClass="grid" 
                            GridLines="None" ondatabound="GridView1_DataBound" 
                            onpageindexchanged="GridView1_PageIndexChanged" AllowSorting="True" 
                            UseAccessibleHeader="False" DataSourceID="SqlDataSource1" 
                            onrowupdating="GridView1_RowUpdating" >
                            <PagerSettings Visible="False" />
                            <RowStyle CssClass="grid-row-normal" />
                            <SelectedRowStyle   CssClass="grid-row-bright" />
                            <Columns>
                             <asp:TemplateField HeaderText="">
                                    <ItemTemplate>
                                        <asp:Button ID="Button1" runat="server" CommandName="Select" Text="选择" CssClass="hide"/>
                                        <img src="/Icons/online.gif" style="margin-top:2px;" alt="" />
                                    </ItemTemplate>
                                    <HeaderStyle CssClass="grid-header" />
                                    
                                    <ItemStyle CssClass="grid" HorizontalAlign="Center" Width="20px" />
                                </asp:TemplateField>
                                 <asp:TemplateField HeaderText="ID" SortExpression="ID">
                                     <EditItemTemplate>
                                         <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("ID") %>' Width="20px" 
                                             ReadOnly="True"></asp:TextBox>
                                     </EditItemTemplate>
                                     <ItemTemplate>
                                         <asp:Label ID="Label1" runat="server" Text='<%# Bind("ID") %>'></asp:Label>
                                     </ItemTemplate>
                                     <HeaderStyle CssClass="grid-header" />
                                     <ItemStyle CssClass="grid" HorizontalAlign="Center" Width="80px" />
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="炉号" SortExpression="炉号">
                                    <EditItemTemplate>
                                        <asp:TextBox ID="TextBox2" runat="server" Text='<%# Bind("炉号") %>' Width="45px"></asp:TextBox>
                                    </EditItemTemplate>
                                    <ItemTemplate>
                                        <asp:Label ID="Label2" runat="server" Text='<%# Bind("炉号") %>'></asp:Label>
                                    </ItemTemplate>
                                    <HeaderStyle CssClass="grid-header" />
                                    <ItemStyle CssClass="grid" HorizontalAlign="Center" Width="45px" />
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="C" SortExpression="C">
                                    <EditItemTemplate>
                                        <asp:TextBox ID="TextBox3" runat="server" Text='<%# Bind("C") %>' Width="35px"></asp:TextBox>
                                    </EditItemTemplate>
                                    <ItemTemplate>
                                        <asp:Label ID="Label3" runat="server" Text='<%# Bind("C") %>'></asp:Label>
                                    </ItemTemplate>
                                    <HeaderStyle CssClass="grid-header" />
                                    <ItemStyle CssClass="grid" Width="35px" />
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="Mn" SortExpression="Mn">
                                    <EditItemTemplate>
                                        <asp:TextBox ID="TextBox4" runat="server" Text='<%# Bind("Mn") %>' Width="35px"></asp:TextBox>
                                    </EditItemTemplate>
                                    <ItemTemplate>
                                        <asp:Label ID="Label4" runat="server" Text='<%# Bind("Mn") %>'></asp:Label>
                                    </ItemTemplate>
                                    <HeaderStyle CssClass="grid-header" />
                                    <ItemStyle CssClass="grid" Width="35px" />
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="Si" SortExpression="Si">
                                    <EditItemTemplate>
                                        <asp:TextBox ID="TextBox5" runat="server" Text='<%# Bind("Si") %>' Width="35px"></asp:TextBox>
                                    </EditItemTemplate>
                                    <ItemTemplate>
                                        <asp:Label ID="Label5" runat="server" Text='<%# Bind("Si") %>'></asp:Label>
                                    </ItemTemplate>
                                    <HeaderStyle CssClass="grid-header" />
                                    <ItemStyle CssClass="grid" Width="35px" />
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="P" SortExpression="P">
                                    <EditItemTemplate>
                                        <asp:TextBox ID="TextBox6" runat="server" Text='<%# Bind("P") %>' Width="35px"></asp:TextBox>
                                    </EditItemTemplate>
                                    <ItemTemplate>
                                        <asp:Label ID="Label6" runat="server" Text='<%# Bind("P") %>'></asp:Label>
                                    </ItemTemplate>
                                    <HeaderStyle CssClass="grid-header" />
                                    <ItemStyle CssClass="grid" Width="35px" />
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="S" SortExpression="S">
                                    <EditItemTemplate>
                                        <asp:TextBox ID="TextBox7" runat="server" Text='<%# Bind("S") %>' Width="35px"></asp:TextBox>
                                    </EditItemTemplate>
                                    <ItemTemplate>
                                        <asp:Label ID="Label7" runat="server" Text='<%# Bind("S") %>'></asp:Label>
                                    </ItemTemplate>
                                    <HeaderStyle CssClass="grid-header" />
                                    <ItemStyle CssClass="grid" HorizontalAlign="Center" Width="35px" />
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="Cr" SortExpression="Cr">
                                    <EditItemTemplate>
                                        <asp:TextBox ID="TextBox8" runat="server" Text='<%# Bind("Cr") %>' Width="35px"></asp:TextBox>
                                    </EditItemTemplate>
                                    <ItemTemplate>
                                        <asp:Label ID="Label8" runat="server" Text='<%# Bind("Cr") %>'></asp:Label>
                                    </ItemTemplate>
                                    <HeaderStyle CssClass="grid-header" />
                                    <ItemStyle CssClass="grid" HorizontalAlign="Center" Width="35px" />
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="Ni" SortExpression="Ni">
                                    <EditItemTemplate>
                                        <asp:TextBox ID="TextBox9" runat="server" Text='<%# Bind("Ni") %>' Width="35px"></asp:TextBox>
                                    </EditItemTemplate>
                                    <ItemTemplate>
                                        <asp:Label ID="Label9" runat="server" Text='<%# Bind("Ni") %>'></asp:Label>
                                    </ItemTemplate>
                                    <HeaderStyle CssClass="grid-header" />
                                    <ItemStyle CssClass="grid" HorizontalAlign="Center" Width="35px" />
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="Cu" SortExpression="Cu">
                                    <EditItemTemplate>
                                        <asp:TextBox ID="TextBox10" runat="server" Text='<%# Bind("Cu") %>' Width="35px"></asp:TextBox>
                                    </EditItemTemplate>
                                    <ItemTemplate>
                                        <asp:Label ID="Label10" runat="server" Text='<%# Bind("Cu") %>'></asp:Label>
                                    </ItemTemplate>
                                    <HeaderStyle CssClass="grid-header" />
                                    <ItemStyle CssClass="grid" HorizontalAlign="Center" Width="35px" />
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="Mo" SortExpression="Mo">
                                    <EditItemTemplate>
                                        <asp:TextBox ID="TextBox11" runat="server" Text='<%# Bind("Mo") %>' Width="35px"></asp:TextBox>
                                    </EditItemTemplate>
                                    <ItemTemplate>
                                        <asp:Label ID="Label11" runat="server" Text='<%# Bind("Mo") %>'></asp:Label>
                                    </ItemTemplate>
                                    <HeaderStyle CssClass="grid-header" />
                                    <ItemStyle CssClass="grid" Width="35px" />
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="Al" SortExpression="Al">
                                    <EditItemTemplate>
                                        <asp:TextBox ID="TextBox12" runat="server" Text='<%# Bind("Al") %>' Width="35px"></asp:TextBox>
                                    </EditItemTemplate>
                                    <ItemTemplate>
                                        <asp:Label ID="Label12" runat="server" Text='<%# Bind("Al") %>'></asp:Label>
                                    </ItemTemplate>
                                    <HeaderStyle CssClass="grid-header" />
                                    <ItemStyle CssClass="grid" Width="35px" />
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="V" SortExpression="V">
                                    <EditItemTemplate>
                                        <asp:TextBox ID="TextBox13" runat="server" Text='<%# Bind("V") %>' Width="35px"></asp:TextBox>
                                    </EditItemTemplate>
                                    <ItemTemplate>
                                        <asp:Label ID="Label13" runat="server" Text='<%# Bind("V") %>'></asp:Label>
                                    </ItemTemplate>
                                    <HeaderStyle CssClass="grid-header" />
                                    <ItemStyle CssClass="grid" Width="35px" />
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="Bi" SortExpression="Bi">
                                    <EditItemTemplate>
                                        <asp:TextBox ID="TextBox14" runat="server" Text='<%# Bind("Bi") %>' Width="35px"></asp:TextBox>
                                    </EditItemTemplate>
                                    <ItemTemplate>
                                        <asp:Label ID="Label14" runat="server" Text='<%# Bind("Bi") %>'></asp:Label>
                                    </ItemTemplate>
                                    <HeaderStyle CssClass="grid-header" />
                                    <ItemStyle CssClass="grid" Width="35px" />
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="Sn" SortExpression="Sn">
                                    <EditItemTemplate>
                                        <asp:TextBox ID="TextBox15" runat="server" Text='<%# Bind("Sn") %>' Width="35px"></asp:TextBox>
                                    </EditItemTemplate>
                                    <ItemTemplate>
                                        <asp:Label ID="Label15" runat="server" Text='<%# Bind("Sn") %>'></asp:Label>
                                    </ItemTemplate>
                                    <HeaderStyle CssClass="grid-header" />
                                    <ItemStyle CssClass="grid" Width="35px" />
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="Pb" SortExpression="Pb">
                                    <EditItemTemplate>
                                        <asp:TextBox ID="TextBox16" runat="server" Text='<%# Bind("Pb") %>' Width="35px"></asp:TextBox>
                                    </EditItemTemplate>
                                    <ItemTemplate>
                                        <asp:Label ID="Label16" runat="server" Text='<%# Bind("Pb") %>'></asp:Label>
                                    </ItemTemplate>
                                    <HeaderStyle CssClass="grid-header" />
                                    <ItemStyle CssClass="grid" Width="35px" />
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="As" SortExpression="As">
                                    <EditItemTemplate>
                                        <asp:TextBox ID="TextBox17" runat="server" Text='<%# Bind("As") %>' Width="35px"></asp:TextBox>
                                    </EditItemTemplate>
                                    <ItemTemplate>
                                        <asp:Label ID="Label17" runat="server" Text='<%# Bind("As") %>'></asp:Label>
                                    </ItemTemplate>
                                    <HeaderStyle CssClass="grid-header" />
                                    <ItemStyle CssClass="grid" Width="50px" />
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="Sb" SortExpression="Sb">
                                    <EditItemTemplate>
                                        <asp:TextBox ID="TextBox18" runat="server" Text='<%# Bind("Sb") %>' Width="35px"></asp:TextBox>
                                    </EditItemTemplate>
                                    <ItemTemplate>
                                        <asp:Label ID="Label18" runat="server" Text='<%# Bind("Sb") %>'></asp:Label>
                                    </ItemTemplate>
                                    <HeaderStyle CssClass="grid-header" />
                                    <ItemStyle CssClass="grid" Width="35px" />
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="抗拉强度" SortExpression="抗拉强度">
                                    <EditItemTemplate>
                                        <asp:TextBox ID="TextBox19" runat="server" Text='<%# Bind("抗拉强度") %>' Width="35px"></asp:TextBox>
                                    </EditItemTemplate>
                                    <ItemTemplate>
                                        <asp:Label ID="Label19" runat="server" Text='<%# Bind("抗拉强度") %>'></asp:Label>
                                    </ItemTemplate>
                                    <HeaderStyle CssClass="grid-header" />
                                    <ItemStyle CssClass="grid" Width="70px" />
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="屈伸极限" SortExpression="屈服极限">
                                    <EditItemTemplate>
                                        <asp:TextBox ID="TextBox20" runat="server" Text='<%# Bind("屈服极限") %>' Width="35px"></asp:TextBox>
                                    </EditItemTemplate>
                                    <ItemTemplate>
                                        <asp:Label ID="Label20" runat="server" Text='<%# Bind("屈服极限") %>'></asp:Label>
                                    </ItemTemplate>
                                    <HeaderStyle CssClass="grid-header" />
                                    <ItemStyle CssClass="grid" Width="70px" />
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="伸长率" SortExpression="伸长率">
                                    <EditItemTemplate>
                                        <asp:TextBox ID="TextBox21" runat="server" Text='<%# Bind("伸长率") %>' Width="35px"></asp:TextBox>
                                    </EditItemTemplate>
                                    <ItemTemplate>
                                        <asp:Label ID="Label21" runat="server" Text='<%# Bind("伸长率") %>'></asp:Label>
                                    </ItemTemplate>
                                    <HeaderStyle CssClass="grid-header" />
                                    <ItemStyle CssClass="grid" Width="70px" />
                                </asp:TemplateField>
                                <asp:CommandField ButtonType="Button" EditText="更新" ShowEditButton="True" 
                                    UpdateText="保存"  ControlStyle-CssClass="wsbutton">
<ControlStyle CssClass="wsbutton"></ControlStyle>
                                </asp:CommandField>
                            </Columns>
                          </asp:GridView>
		            </td>
	            </tr>
	            <tr>
		            <td>   
		                 <table width="100%">
		                    <tr>
		                        <td class="pagebar">
                                    <asp:Button ID="Button_Pager_First" runat="server" Text="" ToolTip="首页" 
                                        CssClass="pageturn-first-b" onclick="Pager_Click" CommandName="--" />
                                    <asp:Button ID="Button_Pager_Prev" runat="server" Text="" ToolTip="上一页" 
                                        CssClass="pageturn-prev-b" onclick="Pager_Click" CommandName="-" />
                                    <input type="button" class="page-split" />第<asp:TextBox ID="TextBox_Pager" runat="server" CssClass="pageturn" 
                                        ontextchanged="Pager_Click"></asp:TextBox>页<input type="button" class="page-split" /><asp:Label ID="Label_Pages" runat="server"></asp:Label><input type="button" class="page-split" />
                                    
                                    <asp:Button ID="Button_Pager_Next" runat="server" Text="" ToolTip="下一页" 
                                        CssClass="pageturn-next-b" onclick="Pager_Click" CommandName="+" />
                                    <asp:Button ID="Button_Pager_Last" runat="server" Text="" ToolTip="末页" 
                                        CssClass="pageturn-last-b" onclick="Pager_Click" CommandName="++" />
                                </td>
                                <td align="right">
                                    <asp:Label ID="Label_Total" runat="server" CssClass="grid_totalrows"></asp:Label>
                                </td>
                            </tr>
                       </table>

		            </td>
	            </tr>
            </table>
            

        </div>
    </div>
    </form>
    <script>
        var textboxs = document.getElementsByTagName("input");
        var i;
        for (i = 0; i < textboxs.length; i++) {
            if (textboxs[i].className == "textbox") {
                textboxs[i].onchange = function(e) { this.className = "textbox-changed"; };
                textboxs[i].onfocus = function(e) { this.select(); };
            }
            else if (textboxs[i].className == "pageturn" || textboxs[i].className == "intxt1" || textboxs[i].className == "intxt2") {
                textboxs[i].onfocus = function(e) { this.select(); };
            }

        }
        var rows = document.getElementsByTagName("tr");
        for (i = 0; i < rows.length; i++) {

            if (rows[i].className == "grid-row-normal") {
                rows[i].onmouseover = function() { this.className = "grid-row-bright"; };
                rows[i].onmouseout = function() { this.className = "grid-row-normal"; };
                rows[i].onclick = function() { this.firstChild.firstChild.click(); };
            }
        }
        var tds = document.getElementsByTagName("td");
        for (i = 0; i < tds.length; i++) {
            if (tds[i].className == "detailheader") {
                tds[i].innerHTML = tds[i].innerHTML.replace("*", "<span class=required>*</span>");
            }
        }

</script>
</body>
</html>
